﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Height="332.189" Width="1000.3">
    <UserControl.Resources>

        <Style  TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid Width="{TemplateBinding Width}" 
     Height="{TemplateBinding Height}" ClipToBounds="False">

                            <!-- Outer Rectangle with rounded corners. -->
                            <Canvas HorizontalAlignment="Stretch" 
        VerticalAlignment="Stretch" Height="{TemplateBinding Height}">
                                <!--<Canvas.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="3.5" ScaleY="3.5"/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Canvas.RenderTransform>-->
                    
                                <Polyline Points="28,0 56,14 56,42 28,56 0,42 0,14, 28,0" Fill="{TemplateBinding Background}" Stroke="DarkGray" StrokeStartLineCap="Round" StrokeThickness="1" ></Polyline>
</Canvas>


                            <!-- Present Content (text) of the button. -->
                            <DockPanel Name="myContentPresenterDockPanel">
                                <ContentPresenter x:Name="myContentPresenter" Margin="10 18" 
          Content="{TemplateBinding  Content}" 
          TextBlock.Foreground="Black" />
                            </DockPanel>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <LinearGradientBrush x:Key="Gold" EndPoint="0.5,0" StartPoint="0.5,1">
            <GradientStop Color="#FFF9E9A0" Offset="0.896"/>
            <GradientStop Color="Gold" Offset="0.668"/>
            <GradientStop Color="#FFFFDD41" Offset="1"/>
            <GradientStop Color="#FFD8BE45" Offset="0.112"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="LightGold" EndPoint="0.5,0" StartPoint="0.5,1">
                        <GradientStop Color="GhostWhite" Offset="1"/>
                        <GradientStop Color="BlanchedAlmond" Offset="0"/>
                    </LinearGradientBrush>
        <LinearGradientBrush x:Key="DarkGold" EndPoint="0.5,0" StartPoint="0.5,1">
            <GradientStop Color="Gold" Offset="1"/>
            <GradientStop Color="DarkGoldenrod" Offset="0"/>
        </LinearGradientBrush>


    </UserControl.Resources>
	<Canvas x:Name="keyboard" Height="332.189" Width="997.442">
		<Button Background ="{StaticResource DarkGold}" Height="50.015" Width="64.305" Focusable="False" 
				Command="{Binding Path=PressAndRelease}" 
				CommandParameter="ESCAPE" Content="Esc" Canvas.Left="1.429" Canvas.Top="62.216" />
		<Button Background="{StaticResource LightGold}" Canvas.Left="97.172" Height="50.015" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F1" Content="F1" Canvas.Top="7.145" />
		<Button Background="{StaticResource LightGold}" Canvas.Left="162.906" Height="50.015" Width="62.876" Command="{Binding Path=PressAndRelease}" CommandParameter="F2" Content="F2" Canvas.Top="7.145" />
		<Button Background="{StaticResource LightGold}" Canvas.Left="230.069" Height="50.015" Width="62.876" Command="{Binding Path=PressAndRelease}" CommandParameter="F3" Content="F3" Canvas.Top="7.145" />
		<Button Background="{StaticResource LightGold}" Canvas.Left="297.232" Height="50.015" Width="62.876" Command="{Binding Path=PressAndRelease}" CommandParameter="F4" Content="F4" Canvas.Top="7.145" />
		<Button Background="{StaticResource LightGold}" Canvas.Left="362.966" Height="50.015" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F5" Content="F5" Canvas.Top="7.145" />
		<Button Background="{StaticResource LightGold}" Canvas.Left="430.129" Height="50.015" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F6" Content="F6" Canvas.Top="7.145" />
		<Button Background="{StaticResource LightGold}" Canvas.Left="497.292" Height="50.015" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F7" Content="F7" Canvas.Top="7.145" />
		<Button Background="{StaticResource LightGold}" Canvas.Left="565.884" Height="50.015" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F8" Content="F8" Canvas.Top="7.145" />
		<Button  Background="{StaticResource LightGold}" Canvas.Left="633.047" Height="50.015" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F9" Content="F9" Canvas.Top="7.145" />
		<Button  Background="{StaticResource LightGold}" Canvas.Left="701.639" Height="50.015" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F10" Content="F10" Canvas.Top="7.145" />
		<Button  Background="{StaticResource LightGold}" Canvas.Left="768.802" Height="50.015" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F11" Content="F11" Canvas.Top="7.145" />
		<Button  Background="{StaticResource LightGold}" Canvas.Left="837.394" Height="50.015" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F12" Content="F12" Canvas.Top="7.145" />
		<Button  Background="{StaticResource Gold}" Canvas.Top="61.25" Height="50" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_3" Content="~" Canvas.Left="68.592" />
		<Button  Background="{StaticResource Gold}" Canvas.Left="132.897" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_1" Content="1"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="197.202" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_2" Content="2"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="262.936" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_3" Content="3"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="331.528" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_4" Content="4"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="397.262" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_5" Content="5"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="465.854" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_6" Content="6"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="533.017" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_7" Content="7"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="600.18" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_8" Content="8" />
		<Button  Background="{StaticResource Gold}" Canvas.Left="667.343" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_9" Content="9"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="734.506" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="_0" Content="0"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="801.669" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_MINUS" Content="-"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="870.261" Canvas.Top="62.216" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_PLUS" Content="+"/>
		<Button  Background="{StaticResource DarkGold}" Canvas.Left="937.424" Canvas.Top="62.216" Height="49.995" Width="124.323" Command="{Binding Path=PressAndRelease}" CommandParameter="BACK" Content="Back"/>
		<Button  Background="{StaticResource DarkGold}" Canvas.Top="112.211" Height="49.995" Width="54.302" Command="{Binding Path=PressAndRelease}" CommandParameter="TAB" Content="Tab" Canvas.Left="38.583" />
		<Button  Background="{StaticResource Gold}" Canvas.Left="104.317" Canvas.Top="112.211" Height="49.995" Width="70.021" Command="{Binding Path=PressAndRelease}" CommandParameter="Q" Content="Q"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="170.051" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="W" Content="W"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="237.214" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="E" Content="E"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="304.377" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="R" Content="R"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="371.54" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="T" Content="T"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="438.703" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="Y" Content="Y"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="505.866" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="U" Content="U"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="573.029" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="I" Content="I"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="641.621" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="O" Content="O"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="707.355" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="P" Content="P"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="775.947" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_4" Content="["/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="841.681" Canvas.Top="112.211" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_6" Content="]"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="910.273" Canvas.Top="112.211" Height="49.995" Width="84.311" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_5" Content="\"/>
		<Button  Background="{StaticResource DarkGold}" Canvas.Top="163.317" Height="49.995" Width="54.302" Command="{Binding Path=PressAndRelease}" CommandParameter="CAPITAL" Content="Caps" Canvas.Left="65.734" />
		<Button  Background="{StaticResource Gold}" Canvas.Left="130.039" Canvas.Top="163.317" Height="49.995" Width="71.45" Command="{Binding Path=PressAndRelease}" CommandParameter="A" Content="A"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="197.202" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="S" Content="S"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="262.936" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="D" Content="D"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="331.528" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="F" Content="F"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="397.262" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="G" Content="G"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="465.854" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="H" Content="H"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="533.017" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="J" Content="J"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="600.18" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="K" Content="K"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="667.343" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="L" Content="L"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="734.506" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_1" Content="; :"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="801.669" Canvas.Top="163.317" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_7" Content="' &quot;"/>
		<Button  Background="{StaticResource DarkGold}" Canvas.Left="870.261" Canvas.Top="163.317" Height="49.995" Width="125.752" Command="{Binding Path=PressAndRelease}" CommandParameter="RETURN" Content="Enter"/>
		<Button  Background="{StaticResource DarkGold}" Canvas.Top="215.534" Height="49.995" Width="54.302" Command="{Binding Path=PressAndHold}" CommandParameter="LSHIFT" Content="Shift" Canvas.Left="97.172" />
		<Button  Background="{StaticResource Gold}" Canvas.Left="161.477" Canvas.Top="215.534" Height="49.995" Width="71.45" Command="{Binding Path=PressAndRelease}" CommandParameter="Z" Content="Z"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="227.211" Canvas.Top="215.534" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="X" Content="X"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="294.374" Canvas.Top="215.534" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="C" Content="C"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="362.966" Canvas.Top="215.534" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="V" Content="V"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="428.7" Canvas.Top="215.534" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="B" Content="B"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="497.292" Canvas.Top="215.534" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="N" Content="N"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="563.026" Canvas.Top="215.534" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="M" Content="M"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="631.618" Canvas.Top="215.534" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_COMMA" Content=", &lt;"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="698.781" Canvas.Top="215.534" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_PERIOD" Content=". &gt;"/>
		<Button  Background="{StaticResource Gold}" Canvas.Left="765.944" Canvas.Top="215.534" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="OEM_2" Content="/ ?"/>
		<Button  Background="{StaticResource DarkGold}" Canvas.Left="831.678" Canvas.Top="215.534" Height="49.995" Width="162.906" Command="{Binding Path=PressAndHold}" CommandParameter="RSHIFT" Content="Shift" />
        <Button  Background="{StaticResource DarkGold}" Canvas.Top="271.084" Height="49.995" Width="54.302" Command="{Binding Path=PressAndHold}" CommandParameter="LCONTROL" Content="Ctrl" Canvas.Left="128.61" >

        </Button>
            <Button  Background="{StaticResource DarkGold}" Canvas.Left="197.202" Canvas.Top="267.751" Height="49.995" Width="51.444"  Command="{Binding Path=PressAndHold}" CommandParameter="LWIN" Content="Win"/>
		<Button  Background="{StaticResource DarkGold}" Canvas.Left="262.936" Canvas.Top="267.751" Height="49.995" Width="61.447" Command="{Binding Path=PressAndHold}" CommandParameter="MENU" Content="Alt" />
		<Button  Background="{StaticResource LightGold}" Canvas.Left="465.854" Canvas.Top="267.751" Height="49.995" Width="64.305" Command="{Binding Path=PressAndRelease}" CommandParameter="SPACE" Content=" "/>
		<Button  Background="{StaticResource DarkGold}" Canvas.Left="667.343" Canvas.Top="271.084" Height="49.995" Width="60.018" Command="{Binding Path=PressAndHold}" CommandParameter="MENU" Content="Alt" />
		<Button  Background="{StaticResource DarkGold}" Canvas.Left="734.506" Canvas.Top="271.084" Height="49.995" Width="57.16" CommandParameter="LMENU" Content="Menu" />
		<Button  Background="{StaticResource DarkGold}" Canvas.Left="801.669" Canvas.Top="271.084" Height="49.995" Width="57.16" CommandParameter="RCONTROL" Content="Ctrl" Command="{Binding Path=PressAndHold}"/>
        <Button  Background="{StaticResource LightGold}" Canvas.Left="531.588" Canvas.Top="267.5" Command="{Binding Path=PressAndRelease}" CommandParameter="SPACE" Height="50" Width="64.305" />
        <Button  Background="{StaticResource LightGold}" Canvas.Left="398.691" Canvas.Top="267.5" Command="{Binding Path=PressAndRelease}" CommandParameter="SPACE" Height="50" Width="64.305" />
        <!--<CheckBox Canvas.Left="894.223" Canvas.Top="17.02" Height="16.665" Name="checkBox1" Width="17.845" IsChecked="{Binding Source={DynamicResource virtualKeyboard}, Path=Shift, Mode=TwoWay, NotifyOnTargetUpdated=True}"></CheckBox>-->
	</Canvas>
</UserControl>
